﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Windows;

namespace Safe_Driving.EasyCalendar.Model
{
    public class EventCal : BindableObject
    {
        //Début et fin d'un event
        private DateTime startTime;
        public DateTime StartTime
        {
            get { return startTime; }
            set
            {
                if (startTime != value)
                {
                    startTime = value;
                }
            }
        }
        
        private DateTime endTime;
        public DateTime EndTime
        {
            get { return endTime; }
            set
            {
                if (endTime != value)
                {
                    endTime = value;
                }
            }
        }

        //ID de l'event
        private int id;
        public int Id
        {
            get { return id; }
            set
            {
                if (id != value)
                {
                    id = value;
                }
            }
        }

        //Capacité
        private int capacite;
        public int Capacite
        {
            get { return capacite; }
            set
            {
                if (capacite != value)
                {
                    capacite = value;
                }
            }
        }

        //NB inscrits
        private int nb_inscrit;
        public int Nb_inscrit
        {
            get { return nb_inscrit; }
            set
            {
                if (nb_inscrit != value)
                {
                    nb_inscrit = value;
                }
            }
        }

        //Constant de couleur pour les types d'events
        public static string Cours_complet = "#37A7A2A2"; // Gris
        public static string Cours_dispo = "#374DDE87"; // Vert

        private string couleur_dispo;
        public string Couleur_dispo
        {
            get { return couleur_dispo; }
            set
            {
                couleur_dispo = value;
            }
        }

        private Visibility btn_visible;
        public Visibility Btn_visible
        {
            get { return btn_visible; }
            set
            {
                if (btn_visible != value)
                {
                    btn_visible = value;
                }
            }
        }

        private Visibility img_cross_visible;
        public Visibility Img_cross_visible
        {
            get { return img_cross_visible; }
            set
            {
                if (img_cross_visible != value)
                {
                    img_cross_visible = value;
                }
            }
        }


        //Nom de l'événement
        private string name_event;
        public string Name_event
        {
            get { return name_event; }
            set
            {
                if (name_event != value)
                {
                    name_event = value;

                }
            }
        }

        //Constant de couleur pour les types d'events
        public static string Voiture = "#176C60"; // Vert
        public static string Moto = "#B3172C"; // Rouge

        private string type_session;
        public string Type_session
        {
            get { return type_session; }
            set
            {
                if (type_session != value)
                {
                    type_session = value;

                }
            }
        }

        private string type;
        public string Type
        {
            get { return type; }
            set
            {
                if (type != value)
                {
                    type = value;

                }
            }
        }

        //Constant de couleur pour les types d'events
        public static string OuiInscrit = "1"; 
        public static string NonInscrit = "0.5";

        private string inscrit;
        public string Inscrit
        {
            get { return inscrit; }
            set
            {
                if (inscrit != value)
                {
                    inscrit = value;

                }
            }
        }

        //Redéfinition de la fonction ToString()
        public override string ToString()
        {
            return Name_event;
        }
      
    }
}
